﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CarlowPitBoy
{
    public partial class Map : Form
    {
        private const int maxTiles = 50;

        //TileSet tileSet = new TileSet(maxTiles);

        public Map()
        {
            InitializeComponent();
        }

        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            //Layers.drawLayers();
            Graphics g = e.Graphics;
        }

        internal void updateWorld()
        {
            bool feh = false;
            label1.Text = UniversalProperties.megsOfRam.ToString();
            label2.Text = UniversalProperties.mousePosition.X.ToString() + "," + UniversalProperties.mousePosition.Y;
            label3.Text = DateTime.UtcNow.ToString();
            label4.Text = feh.ToString();
        }

        private void Form1_KeyDown(object sender, KeyEventArgs e)
        {

        }

        /// <summary>
        /// Used to check what could have started to be clicked
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form1_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                KeyReference.leftMouse.pressed();
            }

        }

        /// <summary>
        /// Used to check what could have been clicked
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form1_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                KeyReference.leftMouse.depressed();
                checkActiveButtons(e);
            }
        }

        private void checkActiveButtons(MouseEventArgs e)
        {
        }


        private void Form1_MouseMove(object sender, MouseEventArgs e)
        {
            //mousePos = e.Location;
        }

        internal void buttonUpdate()
        {
        }

        private void checkForComboBox()
        {
            //for(int itemsFound = 0; itemsFound < )
        }


    }//Form
}//CarlowPitBoy
